﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.SharePoint;
using Microsoft.SharePoint.Security;

namespace SPBusiness.ExtensionMethods
{
    public static class ExtSPFileCollection
    {


        public static SPFile TryGetFile(this SPFileCollection vSPFileCollection, string vName)
        {
            return vSPFileCollection.OfType<SPFile>().FirstOrDefault(x => x.Name == vName);
        }



    }
}
